package com.cdxy.model.dto.base.exception;

import com.cdxy.model.dto.base.exception.enums.IError;
import com.cdxy.model.dto.base.exception.enums.SpecialErrorEnum;

import java.io.Serializable;

/**
 * @Author: tangy
 * @Date: 2020/2/23 17:34
 */
public class BusinessException extends GdaException implements Serializable {

    private static final long serialVersionUID = 614160325424883954L;

    public BusinessException() {
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Throwable throwable) {
        super(throwable);
    }

    public BusinessException(String message, Throwable throwable) {
        super(message, throwable);
    }

    public BusinessException(SpecialErrorEnum specialError) {
        super(specialError);
    }

    public BusinessException(SpecialErrorEnum specialError, String message) {
        super(specialError, message);
    }

    public BusinessException(SpecialErrorEnum specialError, Throwable throwable) {
        super(specialError, throwable);
    }

    public BusinessException(SpecialErrorEnum specialError, String message, Throwable throwable) {
        super(specialError, message, throwable);
    }

    public BusinessException(IError iError) {
        super(iError);
    }

    public BusinessException(IError iError, String message) {
        super(iError, message);
    }

    public BusinessException(IError iError, Throwable throwable) {
        super(iError, throwable);
    }

    public BusinessException(IError iError, String message, Throwable throwable) {
        super(iError, message, throwable);
    }
}
